package com.cybertron.ironhide.manage.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cybertron.ironhide.manage.domain.Comment;
import com.cybertron.ironhide.manage.persistence.CommentMapper;
import com.cybertron.ironhide.manage.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {

	@Resource
	private CommentMapper commentMapper;

	@Override
	public List<Comment> selectByArticleId(String id) {
		return commentMapper.selectByArticleId(id);
	}

	@Override
	public void deleteByPrimaryKey(String id) {
		commentMapper.deleteByPrimaryKey(id);
	}

}
